gtkplacessidebar: fix signal marshal
authorCarlos Soriano <csoriano@gnome.org>
Mon, 29 Aug 2016 12:39:48 +0000 (14:39 +0200)
committerCarlos Soriano <csoriano@gnome.org>
Mon, 29 Aug 2016 13:01:12 +0000 (15:01 +0200)
We were using __VOID for the SHOW_OTHER_LOCATION signal that
uses flags named SHOR_OTHER_LOCATION_WITH_FLAGS.
However, if a signal uses flags the marshal needs to use __FLAGS.

This patch addresses this using VOID__FLAGS as the marshaler parameter.

Thanks to Jan Steffens for pointing this out.

https://bugzilla.gnome.org/show_bug.cgi?id=770550

gtk/gtkplacessidebar.c

index 70f5e5e3e79d913b69291ddf9db45c750fa7650a..3f1f8101f62a493b95c310cb285ee1f69a8b6d3d 100644 (file)
@@ -4391,7 +4391,7 @@ gtk_places_sidebar_class_init (GtkPlacesSidebarClass *class)
                         G_SIGNAL_RUN_FIRST,
                         G_STRUCT_OFFSET (GtkPlacesSidebarClass, show_other_locations_with_flags),
                         NULL, NULL,
-                        _gtk_marshal_VOID__VOID,
+                        _gtk_marshal_VOID__FLAGS,
                         G_TYPE_NONE, 1,
                         GTK_TYPE_PLACES_OPEN_FLAGS);